<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/4/7 0007
 * Time: 10:35
 */
if (!defined('BASEPATH'))
    exit('No direct script access allowed');

class O2o_model extends CI_Model
{

    function __construct()
    {
        parent::__construct();
    }

    function add($data){
//        $this->db->trans_start();
        if($this->db->insert('o2o',$data)){
            return true;
        } else{
            return false;
        }
//        $this->db->trans_complete();
    }
}